import requests from './request'
// 用户点赞评论
export const ApproveComment = (id) => requests({ url: '/comment/beLike/' + id, method: 'post' })

// 获取所有的评论
export const getComments = (mId) => requests({ url: '/comment/list/' + mId, method: 'post' })

// 根据电影id获取用户对电影评论
export const getCommentByMId = (mId) => requests({ url: '/comment/getCommentByMId/' + mId, method: 'post' })

// 获取评分的人数
export const getScoreLen = (mId) => requests({ url: '/comment/getScoreLen/' + mId, method: 'get' })

// 评论电影
export const insertComment = (data) => requests({ url: '/comment/addComment', data: data, method: 'post' })
